<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <canvas id="c" width="300" height="300" style="border: 1px solid #ccc"></canvas>

        <script>
            const cnv = document.getElementById('c')
            const cxt = cnv.getContext('2d')

            cxt.strokeText('你好',40,100);
            cxt.scale(2,2);
            cxt.strokeText('你好',40,100)

        </script>
    </body>
</html>
